package com.t7;

/**
 * Created by xuyiwei on 2018/7/18.
 */

class A{
    public A() {
        System.out.println("A创建");
    }
}

class B{
    public B() {
        System.out.println("B创建");
    }
}
public class C {
    private  B b;

    public C() {
        this.b = new B();
    }

    public static void main(String[] args) {
        C c = new C();
    }

}
